What is the output of this C code (on a 32-bit machine)? int main() { int x = 10000; double y = 56; int *p = &x; double *q = &y; printf("p and q are %d and %d", sizeof(p), sizeof(q)); return 0; }
1.p and q are 4 and 4
2.p and q are 4 and 8
3.Compiler error
4. p and q are 2 and 8
Posted Date:-2022-03-21 15:37:17